
import javax.swing.JFrame;
import javax.swing.JPanel;

/**
 * @author whitscot
 */
public class gui extends JFrame{
    
    LoadPane loadPane = new LoadPane();
    
    gui(){
        this.setSize(800, 800);
        this.setResizable(false);
        this.setLocationRelativeTo(null);
        this.setVisible(true);
        this.setDefaultCloseOperation(DISPOSE_ON_CLOSE);
        this.setLayout(null);
        this.getContentPane().add(loadPane);
        //this.setTitle(Globals.GAME_TITLE);
    }
    
    /**
     * removes all panes from the gui
     */
    public boolean swapPanes(JPanel newPane){
        try {
            getContentPane().removeAll();
            getContentPane().add(newPane);
        } catch (Exception e){
            System.out.println(e);
            return false;
        }
        return true;
    }
    
    public static void main(String[] args) {
        gui t = new gui();
    }
    
}
